package com.framework;

/**
 * @ClassName ReflectDemo3
 * @Description 反射案例：通用框架，保存所有对象的具体信息
 * @Author 2214361854
 * @Date 2022/3/4 21:30
 * @Version 1.0
 */
public class ReflectDemo3 {
    public static void main(String[] args) {
        Student student = new Student();
        student.setName("小王");
        student.setAge(18);
        MybatisUtil.save(student);

        Teacher teacher = new Teacher();
        teacher.setName("老师");
        MybatisUtil.save(teacher);
    }
}
